﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Foundation
{
    class CaloriesCalculater
    {
        public double CaloriesCalculate(Salat Sala) 
        {
            double Calories = new double();
            Calories = Sala.Tomat.ReturnWeight() * Sala.Tomat.ReturnCaloriesKg() + Sala.Cucumb.ReturnWeight() * Sala.Cucumb.ReturnCaloriesKg();
            return Calories;
        }

        public double VitaminsCalculate(Salat Sala) 
        {
            double Vitamins = new double();
            Vitamins = Sala.Tomat.ReturnWeight() * Sala.Tomat.ReturnVitaminsKg() + Sala.Cucumb.ReturnWeight() * Sala.Cucumb.ReturnVitaminsKg();
            return Vitamins;
        }
    }
}
